(function(){"use strict";BX.namespace("BX.Landing.MediaService");BX.Landing.MediaService.Vimeo=function(e,a){BX.Landing.MediaService.BaseMediaService.apply(this,arguments);this.matcher=BX.Landing.Utils.Matchers.vimeo;this.embedURL="//player.vimeo.com/video/$2";this.idPlace=3;this.params={autoplay:1,loop:0,hd:1,muted:0,background:0,show_title:1,show_byline:1,show_portrait:0,fullscreen:1,api:1}};BX.Landing.MediaService.Vimeo.validate=function(e){return BX.Landing.Utils.Matchers.vimeo.test(e)};BX.Landing.MediaService.Vimeo.prototype={constructor:BX.Landing.MediaService.Vimeo,__proto__:BX.Landing.MediaService.BaseMediaService.prototype,getSettingsForm:function(){if(!this.form){this.form=new BX.Landing.UI.Form.BaseForm;var e=this.getSettings();this.form.addField(new BX.Landing.UI.Field.Dropdown({title:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_AUTOPLAY"),selector:"autoplay",content:parseInt(e.autoplay),items:[{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_YES"),value:1},{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_NO"),value:0}],onChange:a}));function a(e){if(e===1){n.setValue(1);n.disable();if(!n.descriptionText){n.setDescription(BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_SOUND_ALERT"))}}else if(e===0){n.removeDescription();n.enable();n.setValue(0)}}var n=new BX.Landing.UI.Field.Dropdown({title:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_SOUND"),selector:"muted",content:e.muted,items:[{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_YES"),value:0},{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_NO"),value:1}]});this.form.addField(n);a(parseInt(e.autoplay));this.form.addField(new BX.Landing.UI.Field.Dropdown({title:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_CONTROLS"),selector:"background",content:parseInt(e.background),items:[{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_YES"),value:0},{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_NO"),value:1}]}));this.form.addField(new BX.Landing.UI.Field.Dropdown({title:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_QUALITY"),selector:"quality",content:e.quality,items:[{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_QUALITY_AUTO"),value:""},{name:"4k ("+BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_QUALITY_HIGH")+")",value:"4k"},{name:"2k",value:"2k"},{name:"1080p",value:"1080p"},{name:"780p",value:"780p"},{name:"360p ("+BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_QUALITY_LOW")+")",value:"360p"}]}));this.form.addField(new BX.Landing.UI.Field.Dropdown({title:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_LOOP"),selector:"loop",content:e.loop,items:[{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_YES"),value:1},{name:BX.Landing.Loc.getMessage("LANDING_CONTENT_URL_MEDIA_NO"),value:0}]}))}return this.form}}})();
//# sourceMappingURL=vimeo_mediaservice.map.js